package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/** 
 * @author liuxin
 * @create 2023-12-05 14:48:42 
 * @description 会话记录表 
 */
@Data
@TableName(value ="yx_session_talk_record")
@ApiModel(value = "会话记录表" , description="yx_session_talk_record")
public class YxSessionTalkRecordEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "record_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="记录ID")
    private Long recordId;

    @TableField(value="session_id")
    @ApiModelProperty(value="会话ID")
    private String sessionId;

    @TableField(value="sender_id")
    @ApiModelProperty(value="发送者ID")
    private Long senderId;

    @TableField(value="sender_name")
    @ApiModelProperty(value="发送者姓名")
    private String senderName;

    @TableField(value="talk_info")
    @ApiModelProperty(value="会话聊天内容")
    private String talkInfo;

    @TableField(value="send_flag")
    @ApiModelProperty(value="是否已发送 0:否 1：是")
    private Integer sendFlag;

    @TableField(value="talk_info_type")
    @ApiModelProperty(value="消息体类型： 1:会话  2：分享")
    private Integer talkInfoType;

    @TableField(value="operation_state")
    @ApiModelProperty(value="操作状态:1:正常的消息 0:撤回的消息")
    private Integer operationState;

    @TableField(value="delete_user_id")
    @ApiModelProperty(value="删除人员ID，用逗号隔开")
    private String deleteUserId;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="update_time")
    @ApiModelProperty(value="更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


    @TableField(value="read_status")
    @ApiModelProperty(value="是否已读 0：未读 1：已读")
    private Integer readStatus;
}
